package com.doradance.recycle.adapter;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.doradance.R;


/**
 * Created by Administrator on 2017/12/21.
 */

public class RecycleAdapter extends RecyclerView.Adapter<RecycleAdapter.RecycleHolder>{
    private Context mContext;

    public RecycleAdapter(Context context) {
        mContext =context;
    }

    @Override
    public RecycleHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        RecycleHolder recycleHolder = new RecycleHolder(LayoutInflater.from(mContext).inflate(R.layout.item_agin_recycle, parent, false));
        return recycleHolder;
    }

    @Override
    public void onBindViewHolder(RecycleHolder holder, int position) {

    }

    @Override
    public int getItemCount() {
        return 10;
    }

    class RecycleHolder extends RecyclerView.ViewHolder{

        public RecycleHolder(View itemView) {
            super(itemView);
        }
    }
}
